package com.wnnight.wys.mapper.role;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wnnight.wys.entity.role.MenuPerm;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @ClassName: MenuPermMapper
 * @Description: //TODO
 * @author: dz
 * @date: 2022-08-31-14:22
 */
public interface MenuPermMapper extends BaseMapper<MenuPerm> {

    @Select("select * from wys_menu m,wys_role_menu mi where m.id=mi.menu_id and mi.role_id=#{roleId}")
    List<MenuPerm> getByRoleId(int roleId);
}
